<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<html>
<head>
<base href="<%=basePath%>">

<title>登录界面</title>

</head>

<body>
	<%
  		String error = (String)request.getAttribute("errorInfo");
  		if(error != null){
  			out.println("<font color='red'>" + error + "</font><br>");
  		}
   %>
	<form action="/JSP_SQL/LoginServletStudent" method="post">
		用户名:<input type="text" name="username" /><br /> 密 码 : <input
			type="text" name="passwd" /><br /> <input type="submit" value="登录">
	</form>
</body>
</html>
